<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Link drag and drop: changing draggable attribute</title>
</head>
<body onload="document.querySelector('a').setAttribute('draggable','false')">
<p><a href="data:text/plain,1" ondragstart="document.querySelector('p').firstChild.nodeValue = 'FAIL'">Try to drag me</a></p>
<p>You should not be able to drag link above.</p>
</body>
</html>